﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ComputerGraphics.Graphics;

namespace ComputerGraphics.Geometry
{
    public class Tetrahedron : CompoundShape
    {
        public Tetrahedron(Point3D origin, Point3D x, Point3D y, Point3D z, Texture texture)
            : base(texture)
        {
            AddShape(new Triangle(origin, origin + x, origin + y, null));
            AddShape(new Triangle(origin, origin + x, origin + z, null));
            AddShape(new Triangle(origin, origin + y, origin + z, null));
            AddShape(new Triangle(origin + x, origin + y, origin + z, null));
        }
    }
}
